package counters;

public class SynchronizedCounter implements Counter {
	private volatile long counter;

	public synchronized void reset() {
		counter = 0;
	}
	public synchronized long getCounter() {
		return counter;
	}
	
	public synchronized void increment() {
		counter++;
	}
}
